<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>创建新的资金用户</title>
    <link  href="../.././css/accountManage.css" rel="stylesheet" type="text/css"/>
    <link href="../.././css/font-awesome.css" rel="stylesheet">
    <link  href="../.././css/common.css" rel="stylesheet" />
    <script type="text/javascript" src="../.././js/jquery-1.10.1.min.js"></script>
    <script type="text/javascript" src="../.././js/google-maps.js"></script>
    <script>$(document).ready(function(){$(".vertical-nav").verticalnav({speed: 400,align: "left"});});</script>
</head>
<body>
<div id="Container">
    <div id="Header">
        <center><h1>股票交易系统后台管理</h1></center>
    </div>
    <div id="Content">
        <div id="Content-Left">
            <ul class="vertical-nav dark red">
                <li class="active"><a href="../.././index.html"><i class="icon-home"></i>首页</a></li>
                <li><a href="  "><i class="icon-cogs"></i>证券账户管理
                    <span class="submenu-icon"></span></a>
                    <ul>
                        <li><a href="../.././html/personRegister.html  ">个人账户开户</a></li>
                        <li><a href="../.././html/coporationRegister.html">法人账户开户</a></li>
                        <li><a href="../.././html/logoutAccount.html">注销账户</a></li>
                        <li><a href="../../html/lossAccount.html">挂失个人账户</a></li>
                        <li><a href="../../ html/AccountStateQuery.html">查询账户状态</a></li>
                        <li><a href="../../html/accountManage.html">查询个人账户信息</a></li>
                        <li><a href="../../html/accountCheckAndQuery.html">查看未审核证券账户信息并审核</a></li>

                    </ul>
                </li>
                <li><a href=" "><i class="icon-briefcase"></i>资金账户管理
                    <span class="submenu-icon"></span></a>
                    <ul>
                        <li><a href="../html/fund/Accountnew.html">创建新资金用户</a></li>
                    </ul>
                </li>
                <li><a href="http://www.internetke.com/"><i class="icon-user"></i>关于我们</a></li>
                <li><a href="http://www.internetke.com/"><i class="icon-envelope"></i>联系我们</a></li>
            </ul>
        </div>
        <div id="Content-Right">
            <div  id="toolbar" class="toolbar">
                <h2 class="title">创建新的资金用户</h2>
            </div>
            <!-- 数据修改面板-->
            <div  id="editPanel" style="overflow-x: hidden;margin: 0;padding:0;" >
                <form  id="account_new">
                    <table class="edittable" style="width:900px">
                        <tr style="height:0px;border: 0px;">
                            <td class="right" style="width:130px;border: 0px;"></td>
                            <td class="left" style="width:310px;border: 0px;"></td>
                            <td class="right" style="width:130px;border: 0px;"></td>
                            <td class="left" style="border: 0px;"></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:130px;border-top: 0px;">证券账户ID：</td>
                            <td class="left" style="border-top: 0px;height: 40px;line-height: 40px;">
                                <input type="text" id="sAccountId"  name="sAccountId" class="input" maxlength="18" placeholder="请输入证券账户ID" watermark="请输入证券账户ID" />
                            </td>
                        </tr>
                        <tr>
                            <td class="right" style="width: 100px">证券账户类型：</td>
                            <td class="left" style="width:100px">
                                <select name="accountType" id="accountType" >
                                    <option value="0">个人账户 </option>
                                    <option value="1">法人账户</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px">设置密码：</td>
                            <td class="left" style="width:100px"><input type="password" id="password" name="password" class="input"maxlength="18"  placeholder="请设置密码" watermark="请设置密码" /></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px">资金总余额</td>
                            <td class="left" style="width:100px"><input type="text" id="remainAmount" name="remainAmount" class="input"maxlength="18"  placeholder="请设置资金总余额" watermark="请设置资金总余额" /></td>
                        </tr>
                        <tr>
                            <td class="right" style="width:100px">可用资金总余额</td>
                            <td class="left" style="width:100px"><input type="text" id="usableRemainAmount" name="usableRemainAmount" class="input"maxlength="18"  placeholder="请设置可用资金余额" watermark="请设置可用资金余额" /></td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2" style="width: 100px"><input type="button"  value="注册" onclick="fundreg()"/></td>
                        </tr>
                    </table>
                </form>
            </div>
            <!--数据查询显示区-->
            <div id="querylist">
            </div>
        </div>
        <div id="Footer"> <p></font>COPYRIGHT2017-2017 &copy;<BR></font></p></div>
    </div>
</div>
</body>
</html>
<script type="text/javascript">
    function fundreg(){
        var data = $("#account_new").serialize();
        $.param(data);
        $.ajax({
            url: "../../account/new",
            type: "POST",
            data: data,
            // processData:false,
            contentType: "application/x-www-form-urlencoded; charset=utf-8",
            dataType: "json",
            success: function (result) {
                //var obj=eval("("+result+")");
                //或者$.parsejson(data);
                if (result.code == 0) {
                    alert(result.message);
                } else if (result.code == 1) {
                    alert(result.message);
                }
            },
            error: function () {
                alert("注册失败！");
            }
        });
    }
</script>
